home *** CD-ROM | disk | FTP | other *** search
- rem
- rem ****************
- rem * TEST-CGI.BAT *
- rem ****************
- rem
- rem Test script for use with CGI example document included
- rem with server documentation. Blank line REQUIRED after
- rem Content-type header!
- rem
- rem Bob Denny <rdenny@netcom.com>
- rem 19-Apr-94
- rem
- rem Echo is OFF at script entry
- rem
- set of=%output_file%
- echo Content-type:text/plain > %of%
- echo. >> %of%
- echo CGI/1.0 test script report: >> %of%
- echo. >> %of%
- echo argc = %# argv: >> %of%
- echo. >> %of%
- if NOT %#==0 echo %1 %2 %3 %4 %5 %6 %7 %8 >> %of%
- if %#==0 echo {empty} >> %of%
- echo. >> %of%
- echo environment variables: >> %of%
- echo. >> %of%
- set >> %of%
- echo. >> %of%
- if NOT %REQUEST_METHOD%==POST goto done
- echo content for POST: >> %of%
- echo ---- begin content ---- >> %of%
- type %CONTENT_FILE% >> %of%
- echo. >> %of%
- echo ----- end content ----- >> %of%
- echo. >> %of%
- :done
- echo -- end of report -- >> %of%
-
-